package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.MemberService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <h3>health_parent_group5</h3>
 * <p></p>
 *
 * @author : Liuzhengyu
 * @date : 2020-03-08 16:00
 **/
@RequestMapping("member")
@RestController
public class MemberController {

    @Reference
    MemberService memberService;

    @RequestMapping("/getMemberSex")
    public Result getMemberSex() {
        List<Map<String,Object>> list =   memberService.getMemberSex();
        List<Map<String,Object>> ageList =  memberService.getAgeAndNum();
        return Result.success("",list,ageList);
    }
}
